package it.infodea.tapestrydea.components;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.ioc.annotations.Inject;

public class DateDea {

	@Parameter
	private Date date;

	@Inject
	private Locale locale;

	private final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);

	public DateFormat getDateFormat() {
		return dateFormat;
	}

	public Date getDate() {
		return date;
	}

}
